package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastBusinessAccounts implements Serializable {
    private Integer id;

    private String accounts;

    private Integer businessid;

    private String businessname;

    private Date createtime;

    private String name;

    private String password;

    private Integer purview;

    private String byroles;

    private String mobile;

    private Integer agentid;

    private String agentname;

    private String bdpushchannelid;

    private String bdpushuserid;

    private Integer bptype;

    private Integer ispush;

    private String otherid;

    private Integer pushtype;

    private String alias;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastBusinessAccounts withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccounts() {
        return accounts;
    }

    public RunfastBusinessAccounts withAccounts(String accounts) {
        this.setAccounts(accounts);
        return this;
    }

    public void setAccounts(String accounts) {
        this.accounts = accounts == null ? null : accounts.trim();
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastBusinessAccounts withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public String getBusinessname() {
        return businessname;
    }

    public RunfastBusinessAccounts withBusinessname(String businessname) {
        this.setBusinessname(businessname);
        return this;
    }

    public void setBusinessname(String businessname) {
        this.businessname = businessname == null ? null : businessname.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastBusinessAccounts withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getName() {
        return name;
    }

    public RunfastBusinessAccounts withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public RunfastBusinessAccounts withPassword(String password) {
        this.setPassword(password);
        return this;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getPurview() {
        return purview;
    }

    public RunfastBusinessAccounts withPurview(Integer purview) {
        this.setPurview(purview);
        return this;
    }

    public void setPurview(Integer purview) {
        this.purview = purview;
    }

    public String getByroles() {
        return byroles;
    }

    public RunfastBusinessAccounts withByroles(String byroles) {
        this.setByroles(byroles);
        return this;
    }

    public void setByroles(String byroles) {
        this.byroles = byroles == null ? null : byroles.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public RunfastBusinessAccounts withMobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Integer getAgentid() {
        return agentid;
    }

    public RunfastBusinessAccounts withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public RunfastBusinessAccounts withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    public String getBdpushchannelid() {
        return bdpushchannelid;
    }

    public RunfastBusinessAccounts withBdpushchannelid(String bdpushchannelid) {
        this.setBdpushchannelid(bdpushchannelid);
        return this;
    }

    public void setBdpushchannelid(String bdpushchannelid) {
        this.bdpushchannelid = bdpushchannelid == null ? null : bdpushchannelid.trim();
    }

    public String getBdpushuserid() {
        return bdpushuserid;
    }

    public RunfastBusinessAccounts withBdpushuserid(String bdpushuserid) {
        this.setBdpushuserid(bdpushuserid);
        return this;
    }

    public void setBdpushuserid(String bdpushuserid) {
        this.bdpushuserid = bdpushuserid == null ? null : bdpushuserid.trim();
    }

    public Integer getBptype() {
        return bptype;
    }

    public RunfastBusinessAccounts withBptype(Integer bptype) {
        this.setBptype(bptype);
        return this;
    }

    public void setBptype(Integer bptype) {
        this.bptype = bptype;
    }

    public Integer getIspush() {
        return ispush;
    }

    public RunfastBusinessAccounts withIspush(Integer ispush) {
        this.setIspush(ispush);
        return this;
    }

    public void setIspush(Integer ispush) {
        this.ispush = ispush;
    }

    public String getOtherid() {
        return otherid;
    }

    public RunfastBusinessAccounts withOtherid(String otherid) {
        this.setOtherid(otherid);
        return this;
    }

    public void setOtherid(String otherid) {
        this.otherid = otherid == null ? null : otherid.trim();
    }

    public Integer getPushtype() {
        return pushtype;
    }

    public RunfastBusinessAccounts withPushtype(Integer pushtype) {
        this.setPushtype(pushtype);
        return this;
    }

    public void setPushtype(Integer pushtype) {
        this.pushtype = pushtype;
    }

    public String getAlias() {
        return alias;
    }

    public RunfastBusinessAccounts withAlias(String alias) {
        this.setAlias(alias);
        return this;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", accounts=").append(accounts);
        sb.append(", businessid=").append(businessid);
        sb.append(", businessname=").append(businessname);
        sb.append(", createtime=").append(createtime);
        sb.append(", name=").append(name);
        sb.append(", password=").append(password);
        sb.append(", purview=").append(purview);
        sb.append(", byroles=").append(byroles);
        sb.append(", mobile=").append(mobile);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", bdpushchannelid=").append(bdpushchannelid);
        sb.append(", bdpushuserid=").append(bdpushuserid);
        sb.append(", bptype=").append(bptype);
        sb.append(", ispush=").append(ispush);
        sb.append(", otherid=").append(otherid);
        sb.append(", pushtype=").append(pushtype);
        sb.append(", alias=").append(alias);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}